Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.user.center.action.widgets--widgettypes

This contribution is part of XML component org.nuxeo.ecm.user.center.action.widgets inside nuxeo-user-center-9.10.jar /OSGI-INF/action-widgets-contrib.xml

Extension Point

Extension point widgettypes of component LayoutStore.

Contributed Items

  • <widgetType name="home_rest_document_link">
          <categories>
            <category>jsfAction</category>
          </categories>
          <configuration>
            <sinceVersion>6.0</sinceVersion>
            <title>Document Home Rest Link</title>
            <description>
              Widget displaying a restful document link for an action
              (typically a tab link). Useful for Home tabs migration to tabs
              widget,
              to apply compatibility changes on existing actions.
            </description>
            <categories>
              <category>action</category>
            </categories>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <properties>
              <defaultValues mode="any">
                <property name="repositoryName">#{currentServerLocation.name}</property>
                <property name="discardSurroundingForm">true</property>
                <property name="disableMultiPartForm">true</property>
                <property name="supportAjax">#{canUseAjaxTabs}</property>
                <property name="view">view_home</property>
                <property name="pattern">home</property>
              </defaultValues>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.actions.facelets.ActionWidgetTypeHandler
          </handler-class>
          <property name="template">
            /incl/action/widgets/rest_document_link_action_template.xhtml
          </property>
          <property name="compat_template">
            /incl/action/rest_document_link_action_template.xhtml
          </property>
          <property name="dev_template">
            /widgets/actions/dev/action_widget_type_dev_template.xhtml
          </property>
        </widgetType>

    Widget displaying a restful document link for an action (typically a tab link). Useful for Home tabs migration to tabs widget, to apply compatibility changes on existing actions.

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.LayoutStore">

    <widgetType name="home_rest_document_link">
      <categories>
        <category>jsfAction</category>
      </categories>
      <configuration>
        <sinceVersion>6.0</sinceVersion>
        <title>Document Home Rest Link</title>
        <description>
          Widget displaying a restful document link for an action
          (typically a tab link). Useful for Home tabs migration to tabs
          widget,
          to apply compatibility changes on existing actions.
        </description>
        <categories>
          <category>action</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="repositoryName">#{currentServerLocation.name}</property>
            <property name="discardSurroundingForm">true</property>
            <property name="disableMultiPartForm">true</property>
            <property name="supportAjax">#{canUseAjaxTabs}</property>
            <property name="view">view_home</property>
            <property name="pattern">home</property>
          </defaultValues>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.actions.facelets.ActionWidgetTypeHandler
      </handler-class>
      <property name="template">
        /incl/action/widgets/rest_document_link_action_template.xhtml
      </property>
      <property name="compat_template">
        /incl/action/rest_document_link_action_template.xhtml
      </property>
      <property name="dev_template">
        /widgets/actions/dev/action_widget_type_dev_template.xhtml
      </property>
    </widgetType>

  </extension>